package com.demo.logging.controller;


import com.demo.logging.pojo.dto.PageQueryDTO;
import com.demo.logging.pojo.entity.OperationLogs;
import com.demo.logging.result.PageResult;
import com.demo.logging.result.Result;
import com.demo.logging.service.IOperationLogsService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author hxt
 * @since 2025-06-20
 */
@RestController
@RequestMapping("/operation-logs")
@RequiredArgsConstructor
public class OperationLogsController {

    private final IOperationLogsService operationLogsService;

    /**
     * 查询操作日志列表
     * @param pageQueryDTO
     * @return
     */
    @GetMapping("/page")
    public Result<PageResult> pageQuery(@RequestBody PageQueryDTO pageQueryDTO) {
        return operationLogsService.pageQuery(pageQueryDTO);
    }
}
